﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebCumpleanios.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        body
        {
            font-family: tahoma, verdana, arial, helvetica, sans-serif;
            font-size: 10px;
        }
        
        .style2
        {
            height: 32px;
            width: 90px;
            text-align: right;
            padding-right: 15px;
        }
        .style4
        {
            vertical-align: top;
        }
        .style5
        {
            width: 130px;
        }
        .fondoFila
        {
            background-color: #E2E2E2;
        }
        .nombrePersona
        {
            font-size: 8pt;
            color: #666666;
            width:80px;
            font-family: Tahoma;
        }
        .enlace
        {
            font-size: 7pt;
            font-family: Tahoma;
            text-decoration: none;
        }
        .enlace:hover
        {
            font-size: 7pt;
            font-family: Tahoma;
            text-decoration: underline;
        }
        .boton
        {
            border: 1px solid #E2E2E2;
            font-family: Tahoma;
            font-size: 8pt;
            background-color: #666666;
            color: #E2E2E2;
            height: 25px;
            cursor: hand;
        }
    </style>
    <script type="text/javascript">
        window.onload = function () {

            document.getElementById('hfIDcurrentUser').value = window.parent._spUserId;
        }
        var cache = new Date().getMilliseconds();
        function mtenlace(usuario) {
            _value = document.getElementById('hdEnlace').value;
            window.parent.location.href = _value + '?id=' + usuario + '&i=' + cache;
        }
        function mtenlace2(usuario, escumpleaniero) {
            _value = document.getElementById('hdEnlace2').value;
            window.parent.location.href = _value + '?id=' + usuario + '&es=' + escumpleaniero + "&i=" + cache;
        }

        function resize() {
            setTimeout(redimensionar, 30);
        }

        function redimensionar() {
            var iframe = window.parent.document.getElementById('MSOPageViewerWebPart_WebPartWPQ2');
            var div = window.parent.document.getElementById('WebPartWPQ2');
            if (iframe != undefined) {
                var altura = (document.body.offsetHeight + 30);
                if (altura < 236) {
                    iframe.style.height = (document.body.offsetHeight + 30) + 'px'
                    div.style.height = (document.body.offsetHeight + 30) + 'px'
                    iframe.setAttribute('scrolling', 'no');
                } else {
                    iframe.style.height = '200px';
                    div.style.height = '200px';
                    iframe.setAttribute('scrolling', 'yes');
                }
                iframe.setAttribute('frameborder','0');
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="0" cellpadding="0" cellspacing="0" style="width:100%;">
            <tr>
                <td class="bordeAbajo style4">
                    <div id="DIVListado" runat="server">
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" CssClass="boton"
                        Text="Ver las de Hoy" />
                </td>
            </tr>
        </table>
    </div>
    <asp:HiddenField ID="hdEnlace" runat="server" />
    <asp:HiddenField ID="hdEnlace2" runat="server" />
    <asp:HiddenField ID="hfIDcurrentUser" runat="server" />
    </form>
</body>
</html>
